import { createApp } from "vue";
import App from "./App.vue";
import { setupPlugin } from "./plugin";
import { setupRouter } from "@/router";
import { setupStore } from "@/stores";
// import { setUpPackages } from "../packages";

import "@/styles/theme/index.less"; //主题颜色
import "@/styles/index.less";
// import "driver.js/dist/driver.css";

console.log("mode =>", __APP_ENV__);
console.log("version =>", __APP_VERSION__);
function bootstrap() {
  const app = createApp(App);

  setupStore(app); //注册pinia

  // 安装路由
  setupRouter(app);

  // setUpPackages(app);

  setupPlugin(app); //安装插件

  app.mount("#app");
}

bootstrap();
